package org.jeecg.modules.system.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 客户报表
 * @Author: jeecg-boot
 * @Date:   2022-03-25
 * @Version: V1.0
 */
@Data
@TableName("customer_report")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="customer_report对象", description="客户报表")
public class CustomerReport implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**序号*/
	@Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private String serial;
	/**选择*/
	@Excel(name = "选择", width = 15)
    @ApiModelProperty(value = "选择")
    private String choice;
	/**客户编码*/
	@Excel(name = "客户编码", width = 15)
    @ApiModelProperty(value = "客户编码")
    private String customerCode;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String customerName;
	/**客户简称*/
	@Excel(name = "客户简称", width = 15)
    @ApiModelProperty(value = "客户简称")
    private String customerShort;
	/**最后一次下单时间*/
	@Excel(name = "最后一次下单时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最后一次下单时间")
    private Date lastDate;
	/**上样*/
	@Excel(name = "上样", width = 15)
    @ApiModelProperty(value = "上样")
    private String memo;
	/**客户分类名称*/
	@Excel(name = "客户分类名称", width = 15)
    @ApiModelProperty(value = "客户分类名称")
    private String addressType;
	/**地区名称*/
	@Excel(name = "地区名称", width = 15)
    @ApiModelProperty(value = "地区名称")
    private String area;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
	/**发展日期*/
	@Excel(name = "发展日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发展日期")
    private Date devDate;
	/**建档人*/
	@Excel(name = "建档人", width = 15)
    @ApiModelProperty(value = "建档人")
    private String createName;
	/**内销客户等级*/
	@Excel(name = "内销客户等级", width = 15)
    @ApiModelProperty(value = "内销客户等级")
    private String level;
	/**发货地址1*/
	@Excel(name = "发货地址1", width = 15)
    @ApiModelProperty(value = "发货地址1")
    private String openAddress;
	/**发货地址2*/
	@Excel(name = "发货地址2", width = 15)
    @ApiModelProperty(value = "发货地址2")
    private String openAddressTwo;
	/**大类*/
	@Excel(name = "大类", width = 15)
    @ApiModelProperty(value = "大类")
    private String type;
	/**余额*/
	@Excel(name = "余额", width = 15)
    @ApiModelProperty(value = "余额")
    private String memoy;
	/**信用额度*/
	@Excel(name = "信用额度", width = 15)
    @ApiModelProperty(value = "信用额度")
    private String xingyong;
	/**客户级别编码*/
	@Excel(name = "客户级别编码", width = 15)
    @ApiModelProperty(value = "客户级别编码")
    private String memo2;
	/**客户级别名称*/
	@Excel(name = "客户级别名称", width = 15)
    @ApiModelProperty(value = "客户级别名称")
    private String memo3;
	/**币种*/
	@Excel(name = "币种", width = 15)
    @ApiModelProperty(value = "币种")
    private String memo4;
	/**潜在客户编码*/
	@Excel(name = "潜在客户编码", width = 15)
    @ApiModelProperty(value = "潜在客户编码")
    private String memo5;
	/**税率%*/
	@Excel(name = "税率%", width = 15)
    @ApiModelProperty(value = "税率%")
    private String memo6;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 经度
     */
    private String  x;
    /**
     * 纬度
     */
    private String  y;

    /**
     * 经度
     */
    private String  xx;
    /**
     * 纬度
     */
    private String  yy;
    @TableField(exist = false)
    private String lastDateBegin;
    @TableField(exist = false)
    private String lastDateEnd;

    @TableField(exist = false)
    private String sum;

    @TableField(exist = false)
    private String name;
}
